import { GET, POST } from '@/utils'


enum API {
    GET_ERROR_DATA_API = '/queryAlarm',
    GET_NEW_ERROR_DATA_API = '/alarm',
    EXPORT_ERROR_DATA_API = '/downloadAlarm',

}

export const getErrorDataApi = (data: any) => POST(API.GET_ERROR_DATA_API, data, false)
export const getNewErrorDataApi = (data: any) => POST(API.GET_NEW_ERROR_DATA_API, null, false)
export const exportErrorDataApi = (data: any) => POST(API.EXPORT_ERROR_DATA_API, data, false)